package com.douqu.game.main.database.mapper.write;

import com.douqu.game.core.database.model.PlayerModel;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by bean on 2017/7/17.
 */
public interface WritePlayerMapper {

    int insert(PlayerModel playerModel);

    int update(PlayerModel playerModel);

    int login(@Param("lastLoginTime") Date lastLoginTime,
              @Param("objectIndex") String objectIndex);

    int logout(@Param("lastLogoutTime") Date lastLogoutTime,
               @Param("playerIndexList") List<String> playerIndexList);

    int delete(@Param("playerModelList") List<PlayerModel> playerModelList);
}
